<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 300px;
            height: 300px;
            background-color: aqua;
        }
    </style>
</head>
<body>
    <div>
        
    </div>
    <script>

        let i = 0
        let box = document.querySelector('div')
        box.addEventListener('touchstart',function(){
            console.log('开始');
        })
        box.addEventListener('touchmove',function(){
            i++
            console.log('滑动'+i);
            if(i>=100){
                alert('停')
                i=0
            }
        })
        box.addEventListener('touchend',function(){
            console.log('结束');
            i=0
        })
  
    </script>
</body>
</html>